package com.ruoyi.assets.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * @author dg
 */

@Getter
@AllArgsConstructor
public enum VisitTypeEnum implements IEnum<Integer> {
    VISIT_TODAY(1, "今日浏览数"),
    ;
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String name;

    @Override
    public Integer getValue() {
        return code;
    }
}
